package com.ms.game.rebate.db;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.ms.game.rebate.RebateModifyStatus;
import com.xpec.c4.db.model.log.basic.BasicTransactionLogModel;


@Entity
@Table(name = "rebate_coin_data_log")
public class RebateLogModel extends BasicTransactionLogModel {

	private static final long serialVersionUID = -4039617328153316714L;

	
	/**
	 * 回饋金的type
	 */
	private int type;
	
	/**
	 * 回饋金Type描述
	 */
	private String typeDesc;

	/**
	 * 回饋金
	 */
	private BigDecimal totalRebateCoin;
	
	/**
	 * 屬於哪一天(Date)
	 * @return
	 */
	private Date belongsDate;
	
	/**
	 * 取得這筆錢的playerId
	 */
	private String playerId;

	/**
	 * 取得這筆錢的player Name
	 */
	private String playerName;

	/**
	 * 下線的id
	 */
	private String downlineId;
	
	/**
	 * 下線名稱 
	 */
	private String downlineName;

	/**
	 * 回饋金狀態 
	 * 0 = 未領取 
	 * 1 = 以領取
	 * 2 = 過期刪除
	 * @see RebateModifyStatus
	 */
	private int status;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public BigDecimal getTotalRebateCoin() {
		return totalRebateCoin;
	}

	public void setTotalRebateCoin(BigDecimal totalRebateCoin) {
		this.totalRebateCoin = totalRebateCoin;
	}

	public Date getBelongsDate() {
		return belongsDate;
	}

	public void setBelongsDate(Date belongsDate) {
		this.belongsDate = belongsDate;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	public String getTypeDesc() {
		return typeDesc;
	}

	public void setTypeDesc(String typeDesc) {
		this.typeDesc = typeDesc;
	}
	

	public String getPlayerId() {
		return playerId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}
	
	public String getPlayerName() {
		return playerName;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}
	
	public String getDownlineName() {
		return downlineName;
	}

	public void setDownlineName(String downlineName) {
		this.downlineName = downlineName;
	}

	public String getDownlineId() {
		return downlineId;
	}

	public void setDownlineId(String downlineId) {
		this.downlineId = downlineId;
	}

}
